<template>
    <el-card>
        <div class="box">
            <img :src="userStore.avatar" alt="" class="avator">
            <div class="bottom">
                <h3>{{ getTime() }}好{{ userStore.username }}</h3>
                <p>多美甄选运营平台</p>
            </div>
        </div>
    </el-card>
    <div class="bottom1"><svg-icon name="welcome" width="500px" height="500px"></svg-icon></div>
</template>

<script setup lang='ts' name="Home">
import useUserStore from '@/store/modules/user';
import { getTime } from '@/utils/time';
let userStore = useUserStore();
</script>

<style scoped lang="scss">
.box {
    display: flex;

    .avator {
        width: 100px;
        height: 100px;
        border-radius: 50%;
    }

    .bottom {
        margin-left: 20px;

        h3 {
            font-size: 30px;
            font-weight: bold;
            margin-bottom: 20px;
        }

        p {
            font-style: italic;
            color: skyblue;
        }
    }

}

.bottom1 {
    display: flex;
    justify-content: center;
}
</style>
